package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SMiniGuildInfo extends Object implements IMessageBase
    {
        public var guildId:int;
        public var guildName:String;
        public var camp:int;
        public var leaderName:String;
        public var level:int;
        public var playerNum:int;
        public var maxPlayerNum:int;
        public var rank:int;
        public var haveSpace:Boolean;
        public var apply:Boolean;
        public const _type:int = 12041;
        public static var _regist:SMiniGuildInfo = new SMiniGuildInfo(true);

        public function SMiniGuildInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SMiniGuildInfo();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.guildId);
            param1.writeString(this.guildName);
            param1.writeInt(this.camp);
            param1.writeString(this.leaderName);
            param1.writeInt(this.level);
            param1.writeInt(this.playerNum);
            param1.writeInt(this.maxPlayerNum);
            param1.writeInt(this.rank);
            param1.writeBool(this.haveSpace);
            param1.writeBool(this.apply);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.guildId = param1.readInt();
            this.guildName = param1.readString();
            this.camp = param1.readInt();
            this.leaderName = param1.readString();
            this.level = param1.readInt();
            this.playerNum = param1.readInt();
            this.maxPlayerNum = param1.readInt();
            this.rank = param1.readInt();
            this.haveSpace = param1.readBool();
            this.apply = param1.readBool();
            
        }

    }
}
